﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Hopscotch.Presentation.Common;
using FluentAssertions;
using Moq;
using NUnit.Framework;

namespace Hopscotch.Application.Shell.Test
{
    [TestFixture]
    public class ShellViewModelTest
    {

        [SetUp]
        public void SetUp()
        { 
        }

        [Test]
        public void TestShellViewModelRegistersWithAppController()
        {
            Mock<IAppController> mockAppController = new Mock<IAppController>();
            var shellViewModel = new ShellViewModel(null, null, mockAppController.Object);

            mockAppController.Verify(s => s.RegisterShell(It.Is<ShellViewModel>(p => p == shellViewModel)), Times.Once);
        }
    }
}
